package com.action.member;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import com.controller.Action;

public class AdminChooseFormAction implements Action{
	@Override
	public String execute(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		HttpSession session = request.getSession();
		String mem_id = (String)session.getAttribute("mem_id");
		
		if(!mem_id.equals("admin") || mem_id==null){
			return "/view/member/loginForm.jsp";
		}else{
			return "/view/member/adminChooseForm.jsp";
		}
	}
}
